#include <ClanLib/core.h>
#include <ClanLib/display.h>
#include <ClanLib/gl.h>
#include <ClanLib/application.h>

#include <vector>
using namespace std;
#define GRAVITY 10.0f
#define SPACESHIP_SIZE 10
class SpaceShip
{
public:
	SpaceShip(void);
	~SpaceShip(void);
	void Initialize(CL_GraphicContext& gc, vector<CL_Vec3f> startPosition, vector<CL_Vec3f> points);
	void Draw(CL_GraphicContext& gc);
	void Update(float dt);
	CL_Vec3f m_speed, m_velocity;
	int m_fuel;

private:
	CL_Sprite* m_spaceShip_sprite;
	CL_Vec3f m_position;
	CL_Vec3f m_startPosition, m_endPosition;
	vector<CL_Vec3f> m_points;
	bool OnStartPosition();
	bool CheckCollisions(CL_Vec3f start, CL_Vec3f end, CL_Vec3f center, int size);
};

